package com.cmy.dao;

import com.cmy.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BookMapper {
    //增加一本书
    int addBook(Books books);
    //删除一本书
    int delBookById(@Param("bookId")int id);
    //更新一本书
    int updateBook(Map map);
    //查询一本书
    Books queryBookByName(@Param("bookName") String bookName);
    //查询全部的书
    List<Books> queryAllBooks();
}

    